<h3>Thanks for posting your complaint</h3> 
<div class="complaint_box" style="width:800px;padding:5px;background:#fbfdfd">
  <div style="width:80%;float:left;">
    <%= render :partial=>"complaint_details", :locals=>{:complaint=>@complaint} %>
  </div>
  <div style="width:62px;float:right;">
    <%= render :partial=>"complaint_tasks", :locals => {:complaint=>@complaint} %>
  </div>
  <div class="clear"></div>
</div>

<div class="images" style="margin-top:20px;">
  <span><b>Attached content:</b></span><br/><br/>
    <% if @complaint.images.empty?%>
      <span>&nbsp;&nbsp;No attachment found</span>
    <% else %>
      <% @complaint.images.each do |img|%>
        <% unless img.name=="thumbnail" %>
          <p>
            Image: <%=img.name %><br/>
            <%=img.description %>
          </p>
          <%=image_tag("#{img.public_filename}")%>
      <% end %>  
    <% end -%>
    <% end -%>
  </div>

</div>
